home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tags18.zip / TEST.CPP < prev    next >
C/C++ Source or Header  |  1992-05-04  |  439b  |  34 lines

  1. extern "C" {
  2.     void test();
  3.     void test2();
  4.     void test3(void);
  5. }
  6.  
  7. #endif
  8. int foo3(int bar3);
  9.  
  10.  
  11. int foobar(int barfoo); 
  12. #endif
  13. int foo(int bar);
  14.  
  15. int foobar2(int barfoo2);   
  16.  
  17. #endif
  18. int foo2(int bar2);
  19.         
  20. #define FOO 1
  21. #define BAR 2
  22. #define BAZ 3
  23.  
  24. class X {};
  25. class B: X {};
  26. class C;
  27.  
  28. inline Vector3D operator+(Vector3D& v1, Vector3D& v2)
  29. {  
  30.     Vector3D sum = v1;
  31.     sum.add(v2);
  32.     return sum;
  33. }
  34.